// 表格列配置项
export const column = [
  { prop: "ibDetailId", label: "明细id" },
  { prop: "ibMasterNo", label: "主单编号", width: "100px", showOverflow: true },
  { prop: "spuNo", label: "物料编号", width: "150px", showOverflow: true },
  { prop: "spuName", label: "物料名称", width: "100px", showOverflow: true },
  { prop: "labelNo", label: "标签号", width: "100px", showOverflow: true },
  { prop: "batchBarcode", label: "生产批次", width: "100px", showOverflow: true },
  { prop: "barcode", label: "箱号", width: "100px", showOverflow: true },
  { prop: "ibPlanQty", label: "计划数量" },
  { prop: "ibActualQty", label: "已收数量" },
  { prop: "ibPostQty", label: "过账数量" },
  { prop: "ibDetailStatus", label: "单据状态" },
  { prop: "postStatus", label: "过账状态" },
  { prop: "createName", label: "创建者" },
  { prop: "createDate", label: "创建时间", width: "180px" },
  { prop: "updateName", label: "更新者" },
  { prop: "updateDate", label: "更新时间", width: "180px" },
  { prop: "comments", label: "备注信息", width: "100px", showOverflow: true },
  { prop: "operate", label: "操作", fixed: "right", type: 'detail' },
]

export const data = {
  form: {},
  queryParams: {
    total: 0,
    dateRange: [],
    pageNum: 1,
    pageSize: 10,
    ibMasterNo: null,
    ebeln: null,
    ebelp: null,
    spuNo: null,
    lotNo: null,
    ibPlanQty: null,
    ibActualQty: null,
    ibPostQty: null,
    ibDetailStatus: null,
    werks: null,
    lgort: null,
    postStatus: null,
    createName: null,
    comments: null
  },
  stationParams: {
    zoneId: 201,
    stationType: 'SI'
  },
  rules: {
    ibMasterNo: [
      { required: true, message: "主单编号不能为空", trigger: "blur" }
    ],
    spuNo: [
      { required: true, message: "物料编号不能为空", trigger: "blur" }
    ],
  }
}

export const formList = [
  { prop: "ibMasterNo", label: "主单编号" },
  { prop: "ebeln", label: "订单号" },
  { prop: "ebelp", label: "订单行号" },
  { prop: "spuNo", label: "物料编号" },
  { prop: "lotNo", label: "批次编号" },
  { prop: "ibPlanQty", label: "计划数量" },
  { prop: "ibActualQty", label: "已收数量" },
  { prop: "ibPostQty", label: "过账数量" },
  { prop: "werks", label: "工厂编号" },
  { prop: "lgort", label: "库存地点" },
  { prop: "postStatus", label: "过账状态", type: 'select' },
  { prop: "createDate", label: "创建时间", type: 'date' },
]